package pwr.zpi.twop;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Input.Keys;

public class KeyboardInputHandler {
	private int START_GAME_OF_LIFE = Keys.ENTER;
	private int CLOSE_APP = Keys.ESCAPE;
	
	private GameOfLifeLayer gameOfLife;
	
	public void update(Input input) {
		if(input.isKeyPressed(CLOSE_APP)) {
			Gdx.app.exit();
		}
		
		if(input.isKeyPressed(START_GAME_OF_LIFE)) {
//			if(!gameOfLife.isAlive()) {
//				gameOfLife.start();
//			}
		}
	}

	public void setGameOfLife(GameOfLifeLayer gameOfLife) {
		this.gameOfLife = gameOfLife;
	}
}
